package com.lvmama.config.common;

/**
 * Created by troy on 2016/8/29.
 * kouhongyu@163.com
 */
public class Constant {

    public static final String SEPARATOR = "/";
    public static final String UTF_8 = "UTF-8";
    public static final String OVERRIDE = "override";
    public static final String DISABLED = "disabled";

    public static final String NAME_SPACE = "sweet-config";
    public static final String PROPERTIES = "properties";

    public static final String APPLICATION_NAME = "application.name";
    public static final String ZOOKEEPER_CONFIG_ADDRESS = "zookeeper.config.address";
    public static final String ZOOKEEPER_CONFIG_OWNER = "zookeeper.config.owner";

//    public static final String WATCHER_ENABLED = "zookeeper.config.watcher.enabled";


    /**
     * 项目名称
     */
    public static String applicationName;
    /**
     * 配置ZooKeeper 地址
     */
    public static String zookeeperConfigAddress;
    /**
     * 配置环境
     */
    public static String zookeeperConfigOwner;
    /**
     * 动态监听开关
     */
    public static Boolean watcherEnabled = false;
    /**
     * 找不到ZooKeeper 上注册的IP 时就用127.0.0.1
     */
    public static String localIp = "127.0.0.1";


}
